<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="System.IO" %>
<% DirectoryInfo dir = Model as DirectoryInfo;
   if (dir != null)
   {
       string root = Vit.Web.Site.GetSitePagesPhysicalRoot();%>
<ul>
    <% foreach (DirectoryInfo sd in dir.GetDirectories())
       { %>
    <li><span>
        <%= Locale.Resource(sd.Name)  %></span>
        <% Html.RenderPartial("Sitemap", sd); %></li>
    <%} %>
    <% foreach (FileInfo file in dir.GetFiles())
       { %>
    <li><a href='<%= file.FullName.Replace(root, "").Replace("\\","/") %>'>
        <%= Locale.Resource(file.Name)%></a></li>
    <%} %>
</ul>
<%} %>
